#!/bin/bash
# list file  
# lynnos@tong-ji.org
# 2009-01-18
if [ $# -ne 2 ] ;then
	echo "usage: `basename $0` dir fileType"
	exit 1
fi
dir=$1
fileType=$2
x=`find $dir -type f`
for file in $x
do
	if [ ${file%.$fileType} != ${file} ] ; then
		echo $file	
	else
		continue
	fi
done

